package com.zdlog.ler.dao;


import com.zdlog.ler.entity.LerUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;


public interface LerUserDao extends JpaRepository<LerUser, String> {
    LerUser findByUserId(String userId);

    @Query(value = "select lu.* from ler_user lu where lu.e_mail=:eMail",nativeQuery = true)
    LerUser findByE_mail(@Param("eMail") String eMail);
}
